/**
 * 
 */
package cn.netjava.softkid.chapter04;

/**
 * @author Administrator
 *
 */
public class StaticTest {

	/**
	 * @param args
	 */
	String str="String!";
	
	public StaticTest()
	{
		System.out.println("constructor!");
	}
	static 
	{
		System.out.println("static block!");
	}
	
	{
		str="dynamic String!";
		System.out.println("dynamic block!");
	}
	public static void main(String[] args) {
		StaticTest st = new StaticTest();
		System.out.println(st.str);

	}

}
